﻿<Window x:Class="Hockey.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:prism="http://www.codeplex.com/prism"               
        xmlns:share="clr-namespace:Hockey.Shared;assembly=Shared"
        xmlns:test="clr-namespace:Hockey.UILayer.Controls;assembly=UILayer"
        Title="Ignitron Hockey 2014" Height="768" Width="1024" MinWidth="800" MinHeight="600"
        xmlns:service="clr-namespace:MVVMDialogs;assembly=MVVMDialog"              
        service:DialogService.IsRegisteredView="True"  
        Icon="/Hockey.ico"
        
        WindowStartupLocation="CenterScreen" >
    <Window.Background>
        <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
            <GradientStop Color="White" Offset="0" />
            <GradientStop Color="LightGray" Offset="1" />
        </LinearGradientBrush>
    </Window.Background>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2.3*" MinWidth="150" />
                <ColumnDefinition Width="5*" />
                <ColumnDefinition Width="2.3*" MinWidth="150" />
            </Grid.ColumnDefinitions>
        
            <Grid Grid.Column="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="1*" />
                    <RowDefinition Height="2*" />
                    <RowDefinition Height="1*" />
                </Grid.RowDefinitions>
            
                <ContentControl Grid.Row="0" prism:RegionManager.RegionName="{x:Static share:RegionNames.TopPlayerLabel}"  />
                <ContentControl Grid.Row="1" prism:RegionManager.RegionName="{x:Static share:RegionNames.ProgressRegion}"  />
                <ContentControl Grid.Row="2" prism:RegionManager.RegionName="{x:Static share:RegionNames.BottomPlayerLabel}" />
            </Grid>
        
            <ContentControl Grid.Column="1" prism:RegionManager.RegionName="{x:Static share:RegionNames.MiddleRegion}" />
            <Grid Grid.Column="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                       
                <ContentControl Grid.Row="0" prism:RegionManager.RegionName="{x:Static share:RegionNames.MenuRegion}" Margin="10" />
                <ContentControl Grid.Row="1" prism:RegionManager.RegionName="{x:Static share:RegionNames.CompassRegion}" />
                <ContentControl Grid.Row="2" prism:RegionManager.RegionName="{x:Static share:RegionNames.NavigationBarRegion}" VerticalAlignment="Top" />

            </Grid>
        </Grid>
        
        <StatusBar Grid.Row="1">
            <StatusBarItem HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="{Binding Path=Width, ElementName=uxStateName}" />
                    <ColumnDefinition x:Name="uxProgressColumn" Width="*" />
                </Grid.ColumnDefinitions>
                
                <TextBlock x:Name="uxStateName" Text="Připraven" Grid.Column="0" Margin="5" />
                <ProgressBar x:Name="uxProgress" Grid.Column="1" Margin="2" Orientation="Horizontal" 
                             HorizontalAlignment="Stretch" Foreground="OrangeRed" />                
            </Grid>
            </StatusBarItem>
        </StatusBar>
    </Grid>
</Window>
